From 955305a034a9a322245b014a6eff8d2135e26b2f Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 4 Feb 2020 22:45:29 +0100 Subject: [PATCH] treestore: Silence compiler warnings This was causing compiler warnings in release builds. --- gtk/gtktreestore.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gtk/gtktreestore.c b/gtk/gtktreestore.c index 20d5dafbca..18f352db81 100644 --- a/gtk/gtktreestore.c +++ b/gtk/gtktreestore.c @@ -184,8 +184,6 @@ static void gtk_tree_store_buildable_custom_finished (GtkBuildable *b const gchar *tagname, gpointer user_data); -static void validate_gnode (GNode *node); - static void gtk_tree_store_move (GtkTreeStore *tree_store, GtkTreeIter *iter, GtkTreeIter *position, @@ -193,6 +191,8 @@ static void gtk_tree_store_move (GtkTreeStore * #ifdef G_ENABLE_DEBUG +static void validate_gnode (GNode *node); + static inline void validate_tree (GtkTreeStore *tree_store) { @@ -3297,6 +3297,7 @@ gtk_tree_store_has_default_sort_func (GtkTreeSortable *sortable) return (tree_store->priv->default_sort_func != NULL); } +#ifdef G_ENABLE_DEBUG static void validate_gnode (GNode* node) { @@ -3312,6 +3313,7 @@ validate_gnode (GNode* node) iter = iter->next; } } +#endif /* GtkBuildable custom tag implementation * -- 2.30.2